package com.ruoyi.wechat.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 微信用户对象 wx_user_online_log
 * 
 * @author ruoyi
 * @date 2024-08-22
 */
public class WxUserOnlineLog extends BaseEntity
{
    private static final Long serialVersionUID = 1L;

    /** id */
    private Integer id;

    /** openid */
    @Excel(name = "openid")
    private String openid;

    /** 人脸识别头像 */
    @Excel(name = "人脸识别头像")
    private String headimg;

    /** 登录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "登录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loginTime;

    /** 登录ip地址 */
    @Excel(name = "登录ip地址")
    private String ipaddr;

    /** 登录地址 */
    @Excel(name = "登录地址")
    private String loginLocation;

    /** 游览类型 */
    @Excel(name = "游览类型")
    private String browser;

    /** 操作系统 */
    @Excel(name = "操作系统")
    private String os;

    /** 操作系统 */
    @Excel(name = "操作系统")
    private String nickName;

    /** 用户类型，1.表示租车用户、2.表示商户 */
    @Excel(name = "用户类型，1.表示租车用户、2.表示商户")
    private Integer userType;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setHeadimg(String headimg) 
    {
        this.headimg = headimg;
    }

    public String getHeadimg() 
    {
        return headimg;
    }
    public void setLoginTime(Date loginTime) 
    {
        this.loginTime = loginTime;
    }

    public Date getLoginTime() 
    {
        return loginTime;
    }
    public void setIpaddr(String ipaddr) 
    {
        this.ipaddr = ipaddr;
    }

    public String getIpaddr() 
    {
        return ipaddr;
    }
    public void setLoginLocation(String loginLocation) 
    {
        this.loginLocation = loginLocation;
    }

    public String getLoginLocation() 
    {
        return loginLocation;
    }
    public void setBrowser(String browser) 
    {
        this.browser = browser;
    }

    public String getBrowser() 
    {
        return browser;
    }
    public void setOs(String os) 
    {
        this.os = os;
    }

    public String getOs() 
    {
        return os;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setUserType(Integer userType) 
    {
        this.userType = userType;
    }

    public Integer getUserType() 
    {
        return userType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("openid", getOpenid())
            .append("headimg", getHeadimg())
            .append("loginTime", getLoginTime())
            .append("ipaddr", getIpaddr())
            .append("loginLocation", getLoginLocation())
            .append("browser", getBrowser())
            .append("os", getOs())
            .append("nickName", getNickName())
            .append("userType", getUserType())
            .toString();
    }
}
